package com.bishe.psy.dao;

import com.bishe.psy.model.Booking;
import com.bishe.psy.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: L
 * Date: 2024-05-02
 * Time: 9:27
 */

@Mapper
public interface BookingMapper {

    int insertSelective(Booking row);

    int updateByPrimaryKeySelective(Booking row);

    Booking selectByPrimaryKey(Long id);

    //根据咨询师id和预约者id查询是否存在预约记录
    Booking selectByPostUserId(Long postUserId,Long receiveUserId);

    //查询该用户的所有预约记录
    List<Booking> selectAll(Long postUserId);


    //咨询师查询预约记录
    List<Booking> selectAllCon(Long receiveUserId);

    //咨询师查询未确定记录
    List<Booking> selectIsNoBooking(Long receiveUserId);


}
